import Editor from "../editor";
import { SelectionType } from "../models";

export class SetSelectionOperation {
    selction_: SelectionType;
    constructor(selction: SelectionType){
        this.selction_ = selction
    }
    apply(editor: Editor): void {
        editor.getSelectionModel()?.setSelection(this.selction_);
    }
}